<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    body {
      width: 300px;
      padding: 15px;
      margin: 0;
      font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;
      background-color: #fff;
    }

    h2 {
      color: #18191C;
      font-size: 16px;
      margin: 0 0 15px 0;
      padding-bottom: 10px;
      border-bottom: 1px solid #e3e5e7;
    }

    .video-title {
      font-weight: 500;
      margin-bottom: 15px;
      word-break: break-all;
      color: #18191C;
      font-size: 14px;
      line-height: 1.4;
    }

    .stat-item {
      margin: 8px 0;
      color: #61666D;
      font-size: 13px;
      display: flex;
      align-items: center;
    }

    .stat-label {
      color: #9499A0;
      margin-right: 8px;
      min-width: 48px;
    }

    .stat-value {
      color: #18191C;
    }

    .bili-card {
      background: #fff;
      border-radius: 8px;
      padding: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .bili-pink {
      color: #FB7299;
    }

    .bili-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .bili-icon {
      width: 24px;
      height: 24px;
      margin-right: 8px;
    }

    .tab-container {
      display: flex;
      margin-bottom: 15px;
      border-bottom: 1px solid #e3e5e7;
    }

    .tab {
      padding: 8px 16px;
      cursor: pointer;
      color: #61666D;
      font-size: 14px;
      border-bottom: 2px solid transparent;
    }

    .tab.active {
      color: #FB7299;
      border-bottom-color: #FB7299;
    }

    .author-info {
      font-size: 12px;
      color: #9499A0;
      text-align: center;
      margin-top: 12px;
      padding-top: 8px;
      border-top: 1px solid #e3e5e7;
    }
  </style>
</head>
<body>
  <div class="tab-container">
    <div class="tab active" id="videoTab">视频数据</div>
    <div class="tab" id="upTab">UP主信息</div>
  </div>
  <div class="bili-header">
    <h2>
      <span class="bili-pink">B站</span> 数据统计
    </h2>
  </div>
  <div class="bili-card">
    <div class="video-title" id="videoTitle"></div>
    <div id="currentStats"></div>
  </div>
  <div class="author-info">Created by xltian9</div>
  <script src="popup.js"></script>
</body>
</html> 